m=15; n=15; order=[2,2,1,15,4,8,7,14,11,10,8,3,9,6,6,9,11,11,14,2,10,12,7,5,9,2,7,12,12,13,6,3,2,5,14,10,2,6,1,7,10,10,1,8,9,5,4,12,14,5,10,3,15,11,14,9,13,13,4,15,4,4,13,9,9,4,3,1,14,8,8,11,11,12,9,12,6,1,3,12,5,2,15,4,2,5,14,4,8,13,7,10,15,13,5,13,13,9,14,2,3,8,3,10,5,7,1,15,5,6,11,8,6,12,1,3,14,12,2,13,3,9,7,9,15,1,7,2,11,6,1,5,14,5,2,2,4,11,11,10,8,10,12,11,13,15,6,12,2,11,15,4,6,9,5,9,6,14,1,15,15,7,3,7,5,8,1,9,6,7,8,15,10,13,4,3,13,12,13,3,1,13,7,6,1,10,7,5,4,7,9,10,1,4,11,12,3,15,14,8,1,13,6,14,11,4,7,3,10,15,8,12,5,12,3,10,6,14,11,14,8,2,8,4,15]; machine=[|1,2,3,4,5,6,7,8,9,10,11,12,13,14,15| 2,3,4,5,6,1,8,7,9,10,11,12,13,14,15| 14,15,3,4,5,6,7,8,9,10,11,12,13,1,2| 8,9,10,11,12,13,14,15,1,2,3,4,5,6,7| 10,11,12,13,1,2,3,4,5,6,7,8,9,14,15| 13,14,15,1,2,3,4,5,6,7,8,9,10,11,12| 3,4,5,6,7,8,9,1,2,10,11,12,13,14,15| 1,2,3,4,5,6,7,8,12,13,14,15,9,10,11| 1,2,3,4,5,6,7,8,9,15,10,11,12,13,14| 7,8,9,10,11,12,13,14,15,1,2,3,4,5,6| 13,14,15,1,2,3,4,5,6,7,8,9,10,11,12| 3,4,5,6,7,8,9,1,2,10,11,12,13,14,15| 5,6,7,8,12,13,1,2,3,4,14,15,9,10,11| 7,8,9,15,10,11,12,13,1,2,3,4,5,6,14| 7,8,9,2,3,4,5,10,11,12,13,14,15,1,6|]; time=[|4,5,6,8,9,10,12,13,15,9,8,6,4,10,12| 14,15,6,8,19,4,12,13,15,9,8,6,14,5,4| 4,5,6,8,9,10,12,13,5,19,8,6,14,10,12| 14,3,16,8,9,10,12,13,15,9,8,6,14,10,9| 15,5,16,8,9,10,2,13,15,9,18,6,4,10,12| 8,15,6,18,9,10,12,13,15,9,8,6,4,10,14| 7,15,6,8,19,6,12,13,7,9,8,6,4,10,12| 14,5,6,8,9,10,12,13,15,9,8,6,4,10,5| 6,5,6,8,9,13,12,13,15,9,8,6,4,10,17| 8,5,6,8,9,11,12,10,15,9,8,6,4,10,12| 4,5,6,8,9,10,12,13,15,9,8,6,4,10,12| 10,15,6,8,19,14,12,13,15,19,8,6,14,5,4| 7,5,6,8,9,10,12,13,5,19,8,6,14,10,12| 8,3,16,8,9,10,12,13,15,19,8,6,14,13,9| 9,5,16,8,9,10,2,13,15,9,18,6,4,11,12|];